]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Do not enable sensitivity if retries are disallowed
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 29 May 2018 00:00:04 +0000 (03:00 +0300)
committerMarco Trevisan <mail@3v1n0.net>
Wed, 25 Jul 2018 20:32:42 +0000 (20:32 +0000)
Set the sensitivity of the UI according to the canRetry parameter and thus
if no more logins are allowed don't take any input.

Fixes #311

js/gdm/authPrompt.js
js/gdm/util.js

index d9ec7eea828599c48c01385b6a39bbaeb42a8eb0..a0a4a21d677e548e820f30c0d18a38bcfac7f83c 100644 (file)
@@ -242,11 +242,11 @@ var AuthPrompt = new Lang.Class({
         this.emit('prompted');
     },
 
-    _onVerificationFailed() {
+    _onVerificationFailed(userVerifier, canRetry) {
         this._queryingService = null;
         this.clear();
 
-        this.updateSensitivity(true);
+        this.updateSensitivity(canRetry);
         this.setActorInDefaultButtonWell(null);
         this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
     },
index 75feb77d0d6598698384f5a73f06d6ae11ebe997..1c6150edad0ec45eecccba9b73d2e5ecfd7ea570 100644 (file)
@@ -565,7 +565,7 @@ var ShellUserVerifier = new Lang.Class({
             }
         }
 
-        this.emit('verification-failed');
+        this.emit('verification-failed', canRetry);
     },
 
     _onConversationStopped(client, serviceName) {